Skip to main content

iso646.h

The iso646.h header file specifies alternative spellings of some common operators. For example, it replaces the logical operator && with the keyword and.

if (x > 6 and x < 12)
// is equivalent to
if (x > 6 && x < 12)

It is defined with the following alternative spellings.

  • and instead of &&
  • and_eq Alternative &=
  • bitand substitution &
  • bitor Alternative |
  • compl Alternative ~
  • not Alternative !
  • not_eq Alternative ! = or Alternative
  • or Alternative ||
  • or_eq Alternative |=
  • xor Alternative ^
  • xor_eq Substitution ^=